import type { FormRules } from "element-plus";
import { reactive } from "vue";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  writeObjective: [{ required: true, message: "请输入", trigger: "blur" }],
  finalResult: [{ required: true, message: "请输入", trigger: "blur" }],
  masterUserId: [{ required: true, message: "请选择", trigger: "change" }],
  userIds: [{ required: true, message: "请选择", trigger: "change" }],
  firstAccountDate: [{ required: true, message: "请选择", trigger: "change" }],
  writeObjectiveFiles: [
    { required: true, message: "请上传", trigger: "change" }
  ],
  finalResultFiles: [{ required: true, message: "请上传", trigger: "change" }]
});
